<template lang="html">
  <div class="particulars-header">
    <div class="particulars-container">
      <h1>{{ particularsData.title }}</h1>
      <div class="particulars-content">
        <p>作者：{{ particularsData.author }}</p>
        <div class="particulars-pic">
          <img :src="particularsData.imgs" alt="">
        </div>
        <div class="particulars-text">{{ particularsData.content }}</div>
      </div>
      <div class="particulars-list" v-for='(ele,index) in particularsData.texts' :key='index'>
        <h4 class="particulars-title"><span>{{ index+1 }}.</span>{{ ele.keywords }}</h4>
        <div class="particulars-item">{{ ele.detailss }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:'ParticularsHeader',
  props:{
    particularsData:{
      type:Object,
      default:function(){
        return {}
      }
    }
  }
}
</script>

<style lang="less" scoped>

.particulars-header{
  padding: 0 0.2rem;
  box-sizing: border-box;
  background-color: #fff;
  .particulars-container{
    h1{
      color: #44bf91;
      font-weight: normal;
      font-size: 0.6rem;
      padding: 0 0.15rem;
      line-height: 1.3rem;
      text-align: center;
      border-bottom: 1px solid #f1f1f1;
    }
    .particulars-content{
      p{
        margin-top: 0.04rem;
      }
      .particulars-pic{
        text-align: center;
        margin-top: 0.3rem;
        img{
          width: 3.36rem;
          height: 2.23rem;
        }
      }
      .particulars-text{
        font-size: 0.24rem;
        color: #43bf92;
        margin-top: 0.2rem;
        margin-bottom: 0.6rem;
      }
    }
    .particulars-list{
      &:last-child{
        padding-bottom: 1rem;
        border-bottom: 1px;
      }
      margin-bottom: 0.3rem;
      .particulars-title{
        color: #43bf92;
        font-weight: normal;
        font-size: 0.30rem;
      }
      .particulars-item{
        color: #757575;
      }
    }
  }
}

</style>
